package net.mysoft.budgetsoft.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**   
 *  
 * @author dagongPGP v1.0 
 * @link <a href=http://www.mysoft.net>北京大公信软科技有限公司</a> 
 *  
 * @version $Revision: 1.00  $Date: 2014-04-24 17:59:03 
 */
@Entity
@Table(name="tb_mdinfo")
public class TMdinfo implements java.io.Serializable {  
	private String c_mdcode;
    private String c_cname;
    private String c_comment;
    private String c_modifier;
    private String c_helpurl;
    private String c_type;
    private String c_name;
    private java.util.Date c_modify_dt;
    private Integer c_scan_count;
    private String c_navidw;
    private String shangJiCDBH;
    private Integer shunXu;
    private String url;
    
	@Id 
    @Column(name="c_mdcode", unique=true, nullable=false)
    public String getC_mdcode(){
    	return this.c_mdcode;
    }
    
    public void setC_mdcode(String c_mdcode){
    	this.c_mdcode = c_mdcode;
    }
    
    @Column(name="c_cname")
    public String getC_cname(){
    	return this.c_cname;
    }
    
    public void setC_cname(String c_cname){
    	this.c_cname = c_cname;
    }
    
    @Column(name="c_comment")
    public String getC_comment(){
    	return this.c_comment;
    }
    
    public void setC_comment(String c_comment){
    	this.c_comment = c_comment;
    }
    
    @Column(name="c_modifier")
    public String getC_modifier(){
    	return this.c_modifier;
    }
    
    public void setC_modifier(String c_modifier){
    	this.c_modifier = c_modifier;
    }
    
    @Column(name="c_helpurl")
    public String getC_helpurl(){
    	return this.c_helpurl;
    }
    
    public void setC_helpurl(String c_helpurl){
    	this.c_helpurl = c_helpurl;
    }
    
    @Column(name="c_type")
    public String getC_type(){
    	return this.c_type;
    }
    
    public void setC_type(String c_type){
    	this.c_type = c_type;
    }
    
    @Column(name="c_name")
    public String getC_name(){
    	return this.c_name;
    }
    
    public void setC_name(String c_name){
    	this.c_name = c_name;
    }
    
    @Column(name="c_modify_dt")
    public java.util.Date getC_modify_dt(){
    	return this.c_modify_dt;
    }
    
    public void setC_modify_dt(java.util.Date c_modify_dt){
    	this.c_modify_dt = c_modify_dt;
    }
    
    @Column(name="c_scan_count")
    public Integer getC_scan_count(){
    	return this.c_scan_count;
    }
    
    public void setC_scan_count(Integer c_scan_count){
    	this.c_scan_count = c_scan_count;
    }
    
    @Column(name="c_navidw")
    public String getC_navidw(){
    	return this.c_navidw;
    }
    
    public void setC_navidw(String c_navidw){
    	this.c_navidw = c_navidw;
    }
    
    @Column(name="ShangJiCDBH")
    public String getShangJiCDBH() {
		return shangJiCDBH;
	}

	public void setShangJiCDBH(String shangJiCDBH) {
		this.shangJiCDBH = shangJiCDBH;
	}
	
	@Column(name="ShunXu")
	public Integer getShunXu() {
		return shunXu;
	}

	public void setShunXu(Integer shunXu) {
		this.shunXu = shunXu;
	}
	 @Column(name="url")
	    public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}
    @Override
    public int hashCode() {
    	int prime = 0;
        prime +=this.getC_mdcode().hashCode();
        return prime;
    }

    @Override
    public boolean equals(Object obj) {
    	boolean isEquals = false;
    	if(obj!=null&&this.getClass()==obj.getClass()){
    		TMdinfo clazz = (TMdinfo)obj;
            if(clazz.getC_mdcode().equals(this.getC_mdcode()))
            	isEquals = true;
    		return isEquals;
    	}
        return isEquals;
    }

}